package com.sixteengroup.personnelms.dao.portal;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sixteengroup.personnelms.bean.Menu;
import com.sixteengroup.personnelms.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao extends BaseMapper<User> {
    User login(User user);

    List<Menu> findMenuList(@Param("id") int id, @Param("type") int type);

    //获取普通员工菜单
    List<Menu> findMenuLis(@Param("id") int id);

    void register(User user);

    User isExist(String account);

    void updatePass(User user);

    List<User> getAccList(User user);

    void updateType(User user);
}
